﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COFE.Core;

namespace COFE.Core.Entry
{
    /// <summary>
    /// IFileSystemInfo implementation do not store properties itself.
    /// It rely on various property providers to provide properties (e.g. FileName)
    /// </summary>
    public interface IPropertyProvider
    {
        /// <summary>
        /// Return a list of supported property.
        /// </summary>
        /// <returns></returns>
        IEnumerable<object> GetSupportedProperty();

        /// <summary>
        /// Get Support options for the specified property.
        /// </summary>
        /// <param name="property"></param>
        /// <returns></returns>
        PropertySupportOptions GetPropertySupportOptions(object property);

        /// <summary>
        /// Return value of the specified property.
        /// </summary>        
        /// <param name="property"></param>
        /// <returns></returns>
        PropertyPair GetProperty(object property);

        /// <summary>
        /// Set value of the specified property.
        /// </summary>        
        /// <param name="property"></param>
        /// <returns></returns>
        void SetProperty(object property, object value);

        /// <summary>
        /// Refresh all properties from the underlying refrence.
        /// </summary>
        void Refresh();
    }

 

}
